<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>天天打飞机</title>
    <link rel="stylesheet" href="css/index.css">
</head>

<body>
    <div id="screen"></div>
</body>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="js/background.js"></script>

<script src="js/player.js"></script>
<script src="js/enemy.js"></script>
<script src="js/bullet.js"></script>

<script>
    var Game = {};
    Game.enemyArr = [];
    Game.container = $('#screen');
    var bgs = new Bg();
    var player = new Player();

    function addenemy() {
        setTimeout(function () {
            var enemy = new Enemy(3, 'left');
            var enemy2 = new Enemy(3, 'right');
            addenemy();
        }, 2500)
    }
    addenemy();
</script>

</html>